package com.study.pojo;

import java.util.Objects;

/**
 * @PackgeName: com.study.pojo
 * @ClassName: SportingEvents
 * @Author: 严志祥
 * Date: 2022-05-04 15:42
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class SportingEvents {
    private Integer sportingId;
    private String sportingName;
    private String sportingBrief;

    public SportingEvents() {
    }

    public SportingEvents(String sportingName, String sportingBrief) {
        this.sportingName = sportingName;
        this.sportingBrief = sportingBrief;
    }

    public SportingEvents(Integer sportingId, String sportingName, String sportingBrief) {
        this.sportingId = sportingId;
        this.sportingName = sportingName;
        this.sportingBrief = sportingBrief;
    }

    public Integer getSportingId() {
        return sportingId;
    }

    public void setSportingId(Integer sportingId) {
        this.sportingId = sportingId;
    }

    public String getSportingName() {
        return sportingName;
    }

    public void setSportingName(String sportingName) {
        this.sportingName = sportingName;
    }

    public String getSportingBrief() {
        return sportingBrief;
    }

    public void setSportingBrief(String sportingBrief) {
        this.sportingBrief = sportingBrief;
    }

    @Override
    public String toString() {
        return "SportingEvents{" +
                "sportingId=" + sportingId +
                ", sportingName='" + sportingName + '\'' +
                ", sportingBrief='" + sportingBrief + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SportingEvents that = (SportingEvents) o;
        return Objects.equals(sportingId, that.sportingId) && Objects.equals(sportingName, that.sportingName) && Objects.equals(sportingBrief, that.sportingBrief);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sportingId, sportingName, sportingBrief);
    }
}
